<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>

<c:forEach items="${videoMatrixList}" var="videoMatrix" varStatus="statu">
	${videoMatrix.name}
	<a href="updateVideoMatrix.action?videoMatrix.id=${videoMatrix.id}">修改</a>  
	<a href="deleteVideoMatrix.action?videoMatrix.id=${videoMatrix.id}" onclick="return confirm('您是否删除')">删除</a><br />
</c:forEach>

<s:form action="addVideoMatrix" method="POST" >
	<s:textfield name="videoMatrix.name" label="产品名称" />
	<s:textfield name="videoMatrix.model" label="产品型号" />
	<s:textfield name="videoMatrix.inputCount" label="输入数量" />
	<s:textfield name="videoMatrix.outputCount" label="输出数量" />
	<s:textfield name="videoMatrix.infraredControl" label="红外控制" />
	<s:textfield name="videoMatrix.differentControl" label="分空控制" />
	<s:textfield name="videoMatrix.protocol" label="协议" />
	<s:textfield name="videoMatrix.informationInterface" label="通信接口" />
	<s:textfield name="videoMatrix.baudRate" label="多波特率" />
	<s:textfield name="videoMatrix.protectCircuit" label="保护电路" />
	<s:textfield name="videoMatrix.box" label="机箱" />
	<s:textfield name="videoMatrix.temperature" label="工作温度" />
	<s:file name="videoMatrix.photo" label="产品图片" />
	
	<input type="hidden" name="videoMatrix.id" value="${videoMatrix.id}"/>
	
	<s:submit name="增加" label="增加" />
</s:form>

</body>
</html>